package com.shockweb.common.virtualconn.factory;

import com.shockweb.common.virtualconn.connection.VirtualConnection;

/**
 * 连接工厂
 * @author 彭明华
 * 2017-8-4 创建
 */
public interface ConnentionFactory<T extends VirtualConnection>{
	/**
	 * 创建连接
	 * @return
	 */
	public T createConnection()throws Exception;
	
	/**
	 * 测试工厂是否有效
	 * @return
	 */
	public boolean check();
	/**
	 * 放回创建连接的相关参数或信息
	 * @return
	 */
	public String toString();
}
